<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>"></base>
    
    <title>系统初始化</title>
    <script type="text/javascript">
       $(function(){  
          $('#initSys').click(function(){
                  $('#initSysForm').submit();
	      });
	            //表单验证及提交处理操作
	      $('#initSysForm').form({
			        url:'<%=path%>/login/Login_initSystem.action',	
			        onSubmit: function(){
			            $.util.showLoading({title: '信息提示：',content: '系统初始化中，请耐心等待.......'});
			        },	
			        success:function(data){
			            $.util.removeLoading();
			            $('#step1').hide();
			            $('#step2').show();
			            returnOptMsg(data,null,'系统初始化完毕！');
			        }
		  });
       });
    </script>
<style>
body{ padding:0; margin:0; font-size:12px}
</style>
  </head>
  
  <body>
   <form method="post" id="initSysForm">
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="21%" style=" background-image:url(<%=path %>/images/init/setup_top.jpg); background-repeat:repeat-x"><img src="<%=path %>/images/init/setup_logo.jpg" width="232" height="67" /></td>
        <td width="59%" style=" background-image:url(<%=path %>/images/init/setup_top.jpg); background-repeat:repeat-x">&nbsp;</td>
        <td width="20%" valign="bottom" style=" background-image:url(<%=path %>/images/init/setup_top.jpg); background-repeat:repeat-x; font-size:12px; color:#666666; padding-bottom:5px">ntax v1.0 简体中文版（utf-8）</td>
      </tr>
    </table></td>
  </tr>
</table>

   <table width="600" border="0" align="center" cellpadding="0" cellspacing="0"  style="border:1px solid #aec7dd; margin-top:3px">
  
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="138"><table width="60%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="56"><img src="<%=path %>/images/init/1.jpg" width="56" height="72" /></td>
            <td width="94%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td style="color:#89d3e7; font-size:24px; line-height:25px; font-weight:bold; font-family: '黑体'; height:35px">系统初始化</td>
              </tr>
              <tr>
                <td style=" color:#999999; font-size:12px; line-height:20px; height:25px">系统数据回到初始状态，请注意操作。</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="20"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td style="background-image:url(<%=path %>/images/init/setup_stepbg.jpg); background-repeat:repeat-x; height:20; width:100px">&nbsp;</td>
            <td style="background-image:url(<%=path %>/images/init/setup_stepbgs.jpg); background-repeat:repeat-x;height:20;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="<%=path %>/images/init/setup_comped.jpg" width="19" height="19" /></td>
                <td align="right"><img src="<%=path %>/images/init/setup_comp.jpg" width="19" height="19" /></td>
              </tr>
            </table></td>
            <td style="background-image:url(<%=path %>/images/init/setup_stepbg.jpg); background-repeat:repeat-x;height:20; width:100px">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td style="background-image:url(<%=path %>/images/init/setup_tdbg.jpg); background-repeat:repeat-x"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="9%" height="200"><table width="100%" border="0" cellspacing="2" cellpadding="2">
              <tr>
                <td height="115">
                <div style="color:#666666; font-size:12px; font-weight:bold; height:20px">系统初始化，将重新设置系统内的数据，使系统恢复到初始状态。</div>
                <div style="color:#666666; font-size:12px; height:25px">系统初始化后，管理员的账号密码会改变，请注意查看。</div></td>
              </tr>
              <tr>
                <td align="center">
                 <div id="step1">
                <table border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><img src="<%=path %>/images/init/setup_btleft.jpg" width="8" height="19" /></td>
                    <td style=" background-image:url(<%=path %>/images/init/setup_btbg.jpg); color:#666666; cursor:pointer; font-size:12px" id="initSys">进行初始化工作</td>
                    <td><img src="<%=path %>/images/init/setup_btrgt.jpg" width="8" height="19" /></td>
                  </tr>
                </table>
                </div>
                <div id="step2" style="display:none">
                <table border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><img src="<%=path %>/images/init/setup_btleft.jpg" width="8" height="19" /></td>
                    <td style=" background-image:url(<%=path %>/images/init/setup_btbg.jpg); " align="center"><a href="<%=path %>/login/Login_reLogin.action" style="color:#666666; font-size:12px ">初始化完成,用户名和密码都为<font color="#FF0000">csmis</font>,请登录</a></td>
                    <td><img src="<%=path %>/images/init/setup_btrgt.jpg" width="8" height="19"/></td>
                  </tr>
                </table>
                </div>
                </td>
              </tr>
            </table></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td style=" background-image:url(<%=path %>/images/init/setup_bom.jpg); background-repeat:repeat-x"><img src="<%=path %>/images/init/setup_bom.jpg" width="27" height="14" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>     
  </form>
  </body>
</html>
